Optimal. Leaf size=42 \[ \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )-\frac {\sqrt {a+b x^2}}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {277, 217, 206} \begin {gather*} \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )-\frac {\sqrt {a+b x^2}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 277
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x^2}}{x^2} \, dx &=-\frac {\sqrt {a+b x^2}}{x}+b \int \frac {1}{\sqrt {a+b x^2}} \, dx\\ &=-\frac {\sqrt {a+b x^2}}{x}+b \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )\\ &=-\frac {\sqrt {a+b x^2}}{x}+\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 63, normalized size = 1.50 \begin {gather*} -\frac {-\sqrt {a} \sqrt {b} x \sqrt {\frac {b x^2}{a}+1} \sinh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )+a+b x^2}{x \sqrt {a+b x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.06, size = 45, normalized size = 1.07 \begin {gather*} -\frac {\sqrt {a+b x^2}}{x}-\sqrt {b} \log \left (\sqrt {a+b x^2}-\sqrt {b} x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 88, normalized size = 2.10 \begin {gather*} \left [\frac {\sqrt {b} x \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) - 2 \, \sqrt {b x^{2} + a}}{2 \, x}, -\frac {\sqrt {-b} x \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) + \sqrt {b x^{2} + a}}{x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.65, size = 57, normalized size = 1.36 \begin {gather*} -\frac {1}{2} \, \sqrt {b} \log \left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2}\right ) + \frac {2 \, a \sqrt {b}}{{\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} - a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 54, normalized size = 1.29 \begin {gather*} \sqrt {b}\, \ln \left (\sqrt {b}\, x +\sqrt {b \,x^{2}+a}\right )+\frac {\sqrt {b \,x^{2}+a}\, b x}{a}-\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}}}{a x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.37, size = 28, normalized size = 0.67 \begin {gather*} \sqrt {b} \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right ) - \frac {\sqrt {b x^{2} + a}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.82, size = 56, normalized size = 1.33 \begin {gather*} -\frac {\sqrt {b\,x^2+a}}{x}-\frac {\sqrt {b}\,\mathrm {asin}\left (\frac {\sqrt {b}\,x\,1{}\mathrm {i}}{\sqrt {a}}\right )\,\sqrt {b\,x^2+a}\,1{}\mathrm {i}}{\sqrt {a}\,\sqrt {\frac {b\,x^2}{a}+1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.42, size = 56, normalized size = 1.33 \begin {gather*} - \frac {\sqrt {a}}{x \sqrt {1 + \frac {b x^{2}}{a}}} + \sqrt {b} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )} - \frac {b x}{\sqrt {a} \sqrt {1 + \frac {b x^{2}}{a}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________